package com.chinamobile.iot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Created by szl on 2017/7/12.
 */
@Configuration
@ConfigurationProperties(prefix = "broker")
public class BrokerConfiguration {
    /**
     * the name of this broker
     */
    private String name;
    /**
     * the host that other broker exchange data with this broker
     */
    private String host;
    /**
     * the port that other broker exchange data with this broker
     */
    private int port;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
